﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Text;

namespace DispatchAssist.BusinessLogical.Model
{
    /// <summary>
    /// SeatLogin
    /// </summary>
    public class QueryCondition
    {

        /// <summary>
        /// SeatLogin 构造函数
        /// </summary>
        public QueryCondition()
        {
            this.UserID = "-1";
            this.UserName = "-1";
            this.StartTime = DateTime.MinValue;
            this.EndTime = DateTime.MinValue;

        }


        /// <summary>
        /// SeatLogin OR映射构造函数
        /// </summary>
        public QueryCondition(System.Data.IDataReader dr)
        {
        }
        /// <summary>
        /// 用户ID
        /// </summary>
        public string UserID { get; set; }

        /// <summary>
        /// 用户名
        /// </summary>
        public string UserName { get; set; }



        /// <summary>
        ///  起始时间
        /// </summary>
        public DateTime StartTime { get; set; }
        /// <summary>
        /// 结束时间
        /// </summary>
        public DateTime EndTime { get; set; }

        public override string ToString()
        {

            return string.Format("查询条件（用户：{0};起始时间：{1};结束时间{2}）", UserName=="-1" ? "所有": UserName, StartTime.ToString(), EndTime.ToString());
        }
    }
}
